using System;
using System.Collections.Generic;
using System.Text;

namespace AntsMap
{
    class Ant
    {
        public int[,] pisol;  // this ant's current solution (pi^k in literature)
        public int[,] pihat;  // the solution after R pheromone swaps
        public int[,] pitilde; // the pihat solution *after* a local search is applied

        private int elements;
        private int dimensions;


        public Ant(int elem, int dimen)
        {
            pisol = new int[elem, dimen];
            pihat = new int[elem, dimen];
            pitilde = new int[elem, dimen];

            elements = elem;
            dimensions = dimen;

            for (int i = 0; i < elements; i++)
            {
                for (int j = 0; j < dimensions; j++)
                {
                    pisol[i, j] = 0;
                    pihat[i, j] = 0;
                    pitilde[i, j] = 0;
                }
            }
        }

        // After finding an initial solution, set the others to this
        public void DuplicateInitial( )
        {
            Array.Copy(this.pisol, this.pihat, elements * dimensions);
            Array.Copy(this.pisol, this.pitilde, elements * dimensions);
        }


    }
}
